from django.db import models

from dvadmin.constant import LEN_NORMAL, LEN_X_LONG
from dvadmin.utils.models import CoreModel

TABLE_PRIFIX = "personal_"


class Skill(CoreModel):
    name = models.CharField('技能名称', max_length=LEN_NORMAL)
    desc = models.CharField('技能描述', max_length=LEN_X_LONG)
    score = models.IntegerField("技能分数", default=0)

    class Meta:
        db_table = TABLE_PRIFIX + "skill"
        verbose_name = '个人技能'
        verbose_name_plural = '个人技能'
